package com.chaofan.kings_poster.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Arrays;
import java.util.List;

/**
 * Created by Chaofan at 2018-12-18 13:56
 * email:chaofan2685@qq.com
 * 英雄实体类
 **/
public class Hero {

    @JsonProperty("cname")
    private String name;

    @JsonProperty("skin_name")
    private List<String> skins;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getSkins() {
        return skins;
    }

    public void setSkins(String skins) {
        this.skins = Arrays.asList(skins.split("\\|"));
    }
}
